package com.wu.service.impl;

import com.wu.bean.Leavingamessage;
import com.wu.dao.LeavingamessageDao;
import com.wu.dao.impl.LeavingamesageDaoImpl;
import com.wu.model.LeavingamessageUserModel;
import com.wu.service.LeavingamessageService;

import java.util.List;

public class LeavingamessageServiceImpl implements LeavingamessageService {
    LeavingamessageDao leavingamessageDao=new LeavingamesageDaoImpl();

    @Override
    public List<LeavingamessageUserModel> QueryLeavingamessageAll() {
        return leavingamessageDao.QueryLeavingamessageAll();
    }

    @Override
    public List<LeavingamessageUserModel> QueryUsername(String Username) {
        return leavingamessageDao.QueryUsername(Username);
    }

    @Override
    public List<LeavingamessageUserModel> QueryLeavingamessageLike(String like) {
        return leavingamessageDao.QueryLeavingamessageLike(like);
    }

    @Override
    public int DeleteLeavingamessage(int id) {
        return leavingamessageDao.DeleteLeavingamessage(id);
    }

    @Override
    public int AddLeavingamessage(Leavingamessage leavingamessage) {
        return leavingamessageDao.AddLeavingamessage(leavingamessage);
    }
}
